<template>
  <view>
    <t-tabs v-model="activeTab">
      <t-tab-panel v-for="item in tabList" :value="item.value" :label="item.label" :panel="item.panelRender" />
    </t-tabs>
  </view>
</template>
<script setup lang="tsx">
import { ref } from 'vue';
import A from './components/1.vue';
import B from './components/2.vue';

const activeTab = ref(1);
const tabList = [
  {
    label: '单个存提',
    value: 1,
    panelRender: () => <A />,
  },
  {
    label: '批量存提',
    value: 2,
    panelRender: () => <B />,
  },
];
</script>
